/* const directives = import.meta.globEager('.//*.js');
export default function (app) {
  for (let com in directives) {
    const comKey = com.match(/\.\/(.*?)\.js/)[1];
    const comValue = directives[com].default;
    console.log(comValue);
    app.directive(comKey, comValue);
  }
} */

import debounce from './debounce'

// 全局注册 directive
export function setupDirective(app) {
    // 使 v-debounce 在所有组件中都可用
    app.directive('debounce', debounce)
}
